<template>
  <div class="home-info-list">
    <div class="carousel">
      <el-carousel height="180px">
        <el-carousel-item v-for="item in banners" style="background: #999">
          <img :src="item.image" class="small">
        </el-carousel-item>
      </el-carousel>
    </div>
    <div class="list-content">
      <div class="list-item" v-for="item in infoList" @click="$router.push({name: 'misArticle', query:{
        sno: item.sno
      }})">
        <div :style="{color:color}">【{{ item.classname }}】</div>
        <div class="info-name" style="">{{ item.title }}</div>
      </div>
    </div>
  </div>
</template>

<script>
export default {
  name: "home-info-list",
  props: {
    color: String,
    infoList: Array,
    banners: Array,
  },
  data() {
    return {}
  }
}
</script>

<style lang="scss" src="./index.scss" scoped>

</style>
